package com.jeesite.modules.isys.common.aop.check;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class CheckMap implements CheckEntity<Map> {

    @Autowired
    private CheckObject checkObject;
    @Override
    public Map check(Map map) throws Exception {
        Object check = checkObject.check(map);
        return (Map) check;
    }

    @Override
    public Map checkArg(Map map) throws Exception {
        Object check = checkObject.checkArg(map);
        return (Map) check;
    }
}
